package io.github.wanggit.website.demos.zipkin_service_2.service;

import io.github.wanggit.antrpc.commons.annotations.RpcAutowired;
import io.github.wanggit.antrpc.commons.annotations.RpcMethod;
import io.github.wanggit.antrpc.commons.annotations.RpcService;
import io.github.wanggit.website.demos.zipkin_api_1.HelloService;
import io.github.wanggit.website.demos.zipkin_api_1.PlayService;

@RpcService
public class HelloServiceImpl implements HelloService {

    @RpcAutowired
    private PlayService playService;

    @RpcMethod
    @Override
    public String sayHello(String name) {
        return playService.playIt("Hello: " + name);
    }
}
